/**
 * Created by YAAP on 2017/8/3.
 */
define(()=>{
    var template=
        `
        <li class=" turnAreaBox bg-white">
        <p type="primary" @click="transfer = true" class="turnArea"><i></i>转区</p>
        <Modal
                v-model="transfer"
                title="小区转移城区"
                class-name="transferDistrictWrap"
                width="340"
                okText="转移小区"
                cancelText="取消转移">
            <div class="modal-content">
                <div class="modal-content-top">
                    <h3>将小区【海南大厦】从【美兰区】转移到</h3>
                    <ul>
                        <li class="bgc">

                            <i-select v-model="selectDistrict">
                                <i-option v-for="item in district" :value="item.value" :key="item">{{ item.label }}
                                </i-option>
                            </i-select>

                        </li>
                        <li class="bgc">
                            <i-select v-model="selectPlace">
                                <i-option v-for="item in customArea" :value="item.value" :key="item">{{ item.label }}
                                </i-option>
                            </i-select>

                        </li>
                    </ul>
                    <div style="clear: both;"></div>
                </div>
                <div class="modal-content-bottom">
                    本操作涉及大量数据，为避免影响日常业务，同时保证数据的一致性，请安排在晚上或周末进行。
                </div>
            </div>
        </Modal>
    </li>
        `;
    var TransferBlock={
        name:"transfer-block",
        data: function () {
            return {

                transfer: false,
                district: [
                    {
                        value: '龙华区',
                        label: '龙华区'
                    },
                    {
                        value: '美兰区',
                        label: '美兰区'
                    },
                    {
                        value: '秀英区',
                        label: '秀英区'
                    },

                ],
                selectDistrict: '',

                customArea: [
                    {
                        value: '国贸',
                        label: '国贸'
                    },
                    {
                        value: '南沙',
                        label: '南沙'
                    },
                    {
                        value: '金盘',
                        label: '金盘'
                    },

                ],
                selectPlace: '',

            }
        },
        template:template,
        methods:{
            transfer:function(){}
        }
    }
    return TransferBlock
})
